﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;

namespace Maticsoft.Web
{
    public partial class LeftTree : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (Session["login"] != null)
                {
                    string strs = Session["login"] as string;

                    string[] logins = strs.Split('|');

                    if (logins[1] == "stu")
                    {
                        this.pnl_user.Visible = true;
                        this.pnl_admin.Visible = false;
                    }
                    else
                    {
                        this.pnl_user.Visible = false;
                        this.pnl_admin.Visible = true;
                    }
                }
              
            }
        }


      
    }
}